<?php
/* @var $this PageController */
/* @var $dataProvider CActiveDataProvider */

$this->breadcrumbs=array(
	'Pages',
);

$this->menu=array(
	array('label'=>'Új oldal', 'url'=>array('create')),
	array('label'=>'Menedzselés', 'url'=>array('admin')),
);
?>

<h1>Oldalak</h1>

<ul>
<?php

foreach($dataProvider->getData(true) as $item){

   if($item->active)
      echo '<li>'  . CHtml::link($item->title, array('page/view', 'id' => $item->id, 'title'=> $item->urlTitle )) .  '</li>';

}
?>
</ul>

